0.Linux

Linux Distributions

Components of a Linux System

Linux User Interfaces

The Shell and Commands

Note

Lab work theory explanation [Important]

Connecting to a Remote Linux Server: SSH & PuTTY

SSH (Secure Shell) Explained

SSH (Secure Shell) is a network protocol used for secure remote access to a computer. It allows users to:

SSH achieves its security by encrypting the communication between the client (your computer) and the server (the remote machine). This encryption prevents eavesdropping and ensures that only authorized users can access the server.

How is SSH Used with AWS Linux AMIs?

When you launch an Amazon Linux 2 instance in AWS, you are provided with a private key file (usually in the .pem format) for authentication. This key is essential for establishing a secure SSH connection to your instance. Here's how it works:

  1. Launch Instance: You launch an Amazon Linux 2 instance (or any Linux-based AMI) in AWS.
  2. Key Pair: A key pair (consisting of a public and private key) is either created during instance launch or you can use an existing key pair. The public key is stored on the instance, and you download the private key to your local machine.
  3. SSH Client: You use an SSH client on your local machine (like the built-in terminal in macOS and Linux or PuTTY on Windows) to connect to the instance using its public IP address.
  4. Authentication: The SSH client uses your private key to authenticate with the instance's public key. This establishes a secure encrypted connection.
  5. Access: Once authenticated, you can interact with your Linux instance as if you were physically present at the console.

PuTTY: Connecting from Windows

PuTTY is a free and open-source SSH client for Windows. Since Windows doesn't come with a built-in SSH client, PuTTY provides a graphical interface for connecting to remote servers.

Key Points about PuTTY:

Importance of SSH and PuTTY for AWS